from page.base_page import BasePage
from selenium.webdriver.common.by import By


class BusinessLookPage(BasePage):
    """数据"""
    url = '/crm5/index.php?m=business&a=view&id='
    id = '30'

    """定位器"""
    # 沟通日志
    contact_log_locator = (By.XPATH, '//*[@id="left_list"]/li[4]/a')
    # 添加日程
    add_event_locator = (By.XPATH, '//*[@id="right_list"]/ul/li[6]/a')
    # 主题
    theme_name_locator = (By.XPATH, '//*[@id="subject"]')
    # 保存
    btn_submit_locator = (By.NAME, 'submit')


    def __init__(self, driver):
        self.driver = driver
        self.url = f'http://{HOST}{self.url}{self.id}'

    def open(self):
        self.driver.get(self.url)

    




